<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <link rel="stylesheet" href="../admin/assets/css/weui.css">
    <link rel="stylesheet" href="../admin/assets/css/weui2.css">
    <script src="../admin/assets/js/zepto.min.js"></script>
    <script src="../admin/assets/libs/layui/layui.js"></script>
</head>
<style>
    .weui_cells::before {
        border: none;
    }

    .weui_cells:after {
        border: none;
    }

    .weui_cell::before {
        border: none;
    }

    .weui_cell {
        padding: 10px 0px;
    }

    .weui_cell_border {
        border-top: none;
        border-bottom: 1px solid #d9d9d9;
        height: 2em;
    }

    .weui_cell_icon {
        width: 25px;
        margin-right: 5px;
        display: block;
    }
    .weui_btn_area {
        margin: 8.176471em 15px .3em;
    }
    .weui_btn{
        border-radius: 40px;
    }
</style>

<body ontouchstart style="background-color: #000;">
<div style="padding-top: 8%; ">
    <div class="weui_icon_area" style="padding: 5em 0em 1em 0em;">
        <img src="../admin/assets/images/version/logo.png" alt="" style="width:4em;display:block;margin: 0 auto;">
    </div>
    <div style="color: white;text-align: center;font-size: 12px;">KING OF SPADES</div>
    <div class="weui_btn_area" style="margin: 9em 5em 0;">
        <div id="downloadAndroid" class="weui_btn weui_btn_default" style="font-size: 14px;">Android APP Download</div>
    </div>
    <!--<div class="weui_btn_area" style="padding-top: 1em;    margin-top: 18px;">-->
    <!--    <a id="iosUrl" target="_blank"-->
    <!--       href=""-->
    <!--       class="weui_btn weui_btn_default">IOS版本下载</a>-->
    <!--</div>-->
</div>
<div class="weui-share" onclick="$(this).fadeOut();$(this).removeClass('fadeOut')">
    <div class="weui-share-box">
        点击右上角在浏览器中打开 <i></i>
    </div>
</div>
</body>
</html>
<script>
    $("#downloadAndroid").click(function () {
        if (is_weixin()) {
            $('.weui-share').show().addClass('fadeIn');
            return false;
        }
        location.href = $(this).attr("href");
    });

    function is_weixin() {
        var ua = navigator.userAgent.toLowerCase();
        if (ua.match(/MicroMessenger/i) == "micromessenger") {
            return true;
        } else {
            return false;
        }
    }

    layui.config({
        base: '../admin/assets/module/'
    }).use(['layer', 'form', 'admin', 'config'], function () {
        var $ = layui.jquery;
        var layer = layui.layer;
        var form = layui.form;
        var admin = layui.admin;
        var config = layui.config;


        $("#downloadAndroid").attr("href", config.base+"app/version/getVersionFile");
        $("#iosUrl").attr("href", config.base+"app/version/getVersionFile");

        // // 获取版本信息
        // admin.ajax({
        //     url: config.file_server + '/versionInfo/getMemVersionInfoById',
        //     data: {},
        //     type: 'get',
        //     dataType: "json",
        //     success: function (data) {
        //         console.log(data);
        //         $("#iosUrl").attr("href", data.data.memVersionInfo.iosUrl);
        //         $("#downloadAndroid").attr("href", data.data.memVersionInfo.androidUrl);
        //     }
        // });
    });


</script>
